package com.example.sjjg.utest.viewmodel

import androidx.lifecycle.ViewModel
import com.example.sjjg.utest.model.DataModel

class DataViewModel : ViewModel() {

    var model                       =   DataModel()
    fun data()                      =   model.data
    fun value()                     =   model.value
    fun status()                    =   model.status
    fun incValue()                  =   model.incValue()
    fun refreshStatus(s: String)    =   model.refreshStatus(s)
    fun addData(x : Int)            =   model.addData(x)

    override fun onCleared() {
        super.onCleared()
        model.clear()
    }
}